<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Article extends BaseModel
{
    public function category(): BelongsTo
    {
        return $this->belongsTo(Category::class)->withTrashed();
    }

    public function categoryTest(): BelongsTo
    {
        return $this->belongsTo(Category::class, 'category_id')->withTrashed();
    }
}
